Don't lie to mkshort about utf8. (#468)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Tue, 21 Jan 2020 15:32:09 +0000 (08:32 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jan 2020 15:32:09 +0000 (08:32 -0700)
commitec0b3c79dc5b40d5f4cd7390e8910cd6adc066bc
tree24b05bb13739dc6f1d716d7e7fa61aea88b65804
parent6f09fc249f2b9a56eebb426eae852a5258960842
Don't lie to mkshort about utf8. (#468)

Pass a flag indicating utf8 on every call to mkshort, instead of
setting it up in the handle.  This is much more likely to be correct
as the string and the flag are passed together.  The old method was
often incorrect as it was based on global_opts.charset, which was
often unrelated to the string that was passed to mkshort.

This also resolved an apparent bug in psitrex.  It was thought
that passing a nullptr to mkshort was a bug, but this results in
the result being generated from the default name.  It is assumed
that this is what was originally intended, and this was never a bug.
defs.h
garmin.cc
holux.cc
mkshort.cc
psitrex.cc
raymarine.cc
reference/gc/maggeo.gs